<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('subject/index')}">学科列表</a></li>
        <li class="active"><a href="{:url('subject/add')}">添加学科</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" action="{:url('subject/add')}" method="post">
        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>学科名称</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-name" name="name">
            </div>
        </div>
        <div class="form-group">
            <label for="teacher_id" class="col-sm-2 control-label">教师</label>
            <div class="col-md-6 col-sm-10">
                <select class="form-control" name="tid" id="teacher_id">
                    <option value="" selected>请选择老师</option>
                    <foreach name="teacher" item="vo">
                        <option value="{$vo.id}">{$vo.name}</option>
                    </foreach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit" id="sub">添加</button>
            </div>
        </div>
    </form>
</div>
<script>
</script>
</body>
</html>